package cn.melonlib.aap.user.model.entity;

import cn.melonlib.aap.user.model.enums.AccountType;
import cn.melonlib.cores.commons.model.anno.MelonEntityId;
import cn.melonlib.cores.commons.model.enums.Gender;
import cn.melonlib.cores.commons.model.enums.IdType;
import cn.melonlib.cores.commons.model.enums.IdValueType;
import cn.melonlib.cores.commons.model.support.number_id.MelonLibLongIdEntity;
import cn.melonlib.cores.commons.model.support.number_id.MelonLibLongTenantRecordEntity;
import cn.melonlib.cores.identification.model.entity.Identification;
import cn.melonlib.cores.model.anno.ModelComment;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper = true)
@Entity(name = "Account")
@Table(name = "user_account")
@ModelComment("登陆账户")
@MelonEntityId(type = IdType.SNOW_FLAKE,IdValueType = IdValueType.LONG)
public class Account extends MelonLibLongTenantRecordEntity implements Identification {

    @ModelComment("账户名称")
    private String account;

    @ModelComment("用户身份")
    private String accountTypes;

    @ModelComment("是否激活")
    private Boolean actived=true;

    private String openid;

}
